import { createPinia } from 'pinia'
import persist from 'pinia-plugin-persistedstate'
import type { App } from 'vue'
const pinia = createPinia()

pinia.use(persist)

async function registerStore(app: App<Element>) {
  app.use(pinia)
}

export default registerStore

export * from './modules/user'
export * from './modules/login'
